﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Hang_Hoa.ascx.cs" Inherits="UserConTrols_Sach" %>
<asp:Label ID="showthongbaosachmoi" runat="server" Text=""></asp:Label>
<a name="pagging"></a>
<div class="cnt_block1">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td class="c_top_c">
                &nbsp;<br />
                &nbsp;HÀNG BÁN CHẠY<br />
                &nbsp;
            </td>
        </tr>
    </table>
</div>
<asp:Panel ID="Panelphantrang1" Visible="false" runat="server">
    <hr color="#008000" size="1" noshade>
    <table width="100%">
        <tr>
            <td align="left" width="15%">
                <asp:HyperLink ID="trangdautien1" runat="server">Trang Đầu</asp:HyperLink>
            </td>
            <td align="left" width="15%">
                <asp:HyperLink ID="trangsau1" runat="server">Trang Trước</asp:HyperLink>
            </td>
            <td align="center" width="40%">
                <asp:Label ID="tongconghanghoa1" runat="server" Text=""></asp:Label>
            </td>
            <td align="right" width="15%">
                <asp:HyperLink ID="trangtiep1" runat="server">Trang Tiếp</asp:HyperLink>
            </td>
            <td align="right" width="15%">
                <asp:HyperLink ID="trangcuoi1" runat="server">Trang Cuối</asp:HyperLink>
            </td>
        </tr>
    </table>
</asp:Panel>
<hr color="#008000" size="1" noshade>
<asp:DataList ID="DataList1" runat="server" RepeatColumns="2">
    <ItemTemplate>
        <table border="0" width="100%" cellpadding="3" cellspacing="0">
            <tr>
                <td style="width: 20%; vertical-align: top" rowspan="5">
                    <a href='<%# "Xem_Hang_Hoa.aspx?mahh=" + Eval("mahh") %>'>
                        <img border="0" width="100" height="100" src='<%# "anh_san_pham/" + Eval("hinhanh") %>' /></a>
                </td>
                <td>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "../Xem_Hang_Hoa.aspx?mahh=" + Eval("mahh") %>'
                        Text='<%#rutgonten((string)Eval("tenhh"),22,1) %>'></asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <div title="<%#Eval("tennhomhh") %>">
                        Nhóm Hàng:
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?manhomhh=" + Eval("manhomhh") %>'
                            Text='<%# rutgonten((string)Eval("tennhomhh"),10,2) %>'></asp:HyperLink></div>
                </td>
            </tr>
            <tr>
                <td>
                    <div title="<%#Eval("tenloaihh") %>">
                        Loại Hàng:
                        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?maloaihh=" + Eval("maloaihh") %>'
                            Text='<%# rutgonten((string)Eval("tenloaihh"),12,2) %>'></asp:HyperLink></div>
                </td>
            </tr>
            <tr>
                <td>
                    <div title="<%#Eval("tennhasx") %>">
                        Nhà SX:
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?manhasx=" + Eval("manhasx") %>'
                            Text='<%# rutgonten((string)Eval("tennhasx"),15,2) %>'></asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    Đơn Giá: <font color="red">
                        <%#Eval("dongia", "{0:#,##0} VNĐ")%></font>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl='<%# "../Xem_Hang_Hoa.aspx?id=add&mahh=" + Eval("mahh") %>'
                        ImageUrl="~/Images/Nut/chonhang.gif"><font color="green"><b>Thêm vào giỏ hàng</b></font></asp:HyperLink>
                </td>
                <td>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "../Xem_Hang_Hoa.aspx?mahh=" + Eval("mahh") %>'
                        ImageUrl="~/images/nut/chitiet.gif">Xem Hàng</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <font color="blue">Ngày nhập :
                        <%#Lay_DATE_Chuan_VN(((DateTime)Eval("ngaynhap")).ToString("MM/dd/yyyy"))%></font>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <br />
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</asp:DataList>
<asp:Panel ID="Panelphantrang2" Visible="false" runat="server">
    <hr color="#008000" size="1" noshade>
    <table width="100%">
        <tr>
            <td align="left" width="15%">
                <asp:HyperLink ID="trangdautien2" runat="server">Trang Đầu</asp:HyperLink>
            </td>
            <td align="left" width="15%">
                <asp:HyperLink ID="trangsau2" runat="server">Trang Trước</asp:HyperLink>
            </td>
            <td align="center" width="40%">
                <asp:Label ID="tongconghanghoa2" runat="server" Text=""></asp:Label>
            </td>
            <td align="right" width="15%">
                <asp:HyperLink ID="trangtiep2" runat="server">Trang Tiếp</asp:HyperLink>
            </td>
            <td align="right" width="15%">
                <asp:HyperLink ID="trangcuoi2" runat="server">Trang Cuối</asp:HyperLink>
            </td>
        </tr>
    </table>
</asp:Panel>
